<style>
.chat_loading{position:absolute;width:24px;height:24px;right:36px;top:20px;}
.chatbox_ajax ul{list-style: none;}
.usernormal{color:#2889cc;}
</style>
<ul>
<?php

foreach ($data as $data){
                //          
                
                echo '<li class="dayago icon_user_16">';
                echo '        ';                
                echo '    ';
                echo '    <strong class="';
                echo $data->username=="admin"?'user_credit':'usernormal';    
                
                echo    '">';
                echo        $data->username;
                echo '    </strong> ';
                echo '    <span class="contentchatbox">';
                echo         $data->content;
                echo '    </span>';
                echo '    <span style="font-size:11px;" class="day">(';
                echo         date('H:m:s-d-m-Y',$data->time);
                echo '    )</span> ';
                echo '</li> ';                
                
                
            }
            ?>
 </ul> 